
 <?php 
	
	require_once "connect.php";
    $conn = ConnectDB();
	$ss = "UPDATE patients SET ID = '$_POST[id]', NAME = '$_POST[name]', SURNAME = '$_POST[surname]', BIRTHDATE = '$_POST[birthdate]',
		BLOOD_GROUP ='$_POST[bloodgroup]', AGE = '$_POST[age]', GENDER ='$_POST[gender]', DOCTOR_ID = '$_POST[doctorid]'
	    WHERE ID = '$_GET[col]' ";
		
	$update= oci_parse($conn,$ss);
	$result = oci_execute($update);
	if(!$result) exit($ss);
 ?>
<html>
<head><meta http-equiv="refresh" content="1; URL=patients.php"></head>
<BODY bgcolor = "#ffffff">
<font color="#ffffff" size="20">Redirecting ...</font>
 </body>
 </html>
